package com.andaily.infrastructure.support.cloudfoundary;

import java.util.ArrayList;
import java.util.List;

/**
 * @author Shengzhao Li
 */
public class CloudFoundryDataSourceDetails {

    private String name;
    private String label;
    private String plan;
    private List<String> tags = new ArrayList<String>();
    private CloudFoundryDataSourceCredentials credentials = new CloudFoundryDataSourceCredentials();

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public String getPlan() {
        return plan;
    }

    public void setPlan(String plan) {
        this.plan = plan;
    }

    public List<String> getTags() {
        return tags;
    }

    public void setTags(List<String> tags) {
        this.tags = tags;
    }

    public CloudFoundryDataSourceCredentials getCredentials() {
        return credentials;
    }

    public void setCredentials(CloudFoundryDataSourceCredentials credentials) {
        this.credentials = credentials;
    }

    @Override
    public String toString() {
        return "{" +
                "name='" + name + '\'' +
                ", label='" + label + '\'' +
                ", plan='" + plan + '\'' +
                ", tags=" + tags +
                ", credentials=" + credentials +
                '}';
    }
}
